﻿<UserControl x:Class="OnlineVideos.ShowChapters"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
     xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" Loaded="UserControl_Loaded">
    
    <Grid x:Name="LayoutRoot">
        <ListBox x:Name="lbxChapterLinks" Grid.Row="0" SelectionChanged="lbxChapterLinks_SelectionChanged" Foreground="White" Margin="0,0,0,15">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" Height="80">
                        <toolkit:ContextMenuService.ContextMenu>
                            <toolkit:ContextMenu Opened="ContextMenu_Opened_1">
                                <toolkit:MenuItem Header="report broken link" Click="btnBrokenMovie_Click">
                                </toolkit:MenuItem>
                                <toolkit:MenuItem x:Name="del" Header="delete link" Click="MenuItem_Click_1">
                                </toolkit:MenuItem>
                            </toolkit:ContextMenu>
                        </toolkit:ContextMenuService.ContextMenu>
                        <Image Source="/Images/ArrowImg.png" Height="43" Width="43" VerticalAlignment="Center" Margin="10,0,20,0" Tag="{Binding SongID}"/>
                        <TextBlock Text="{Binding Title}" Width="330" Margin="-2,-5,0,0" FontSize="28" VerticalAlignment="Center" Tag="{Binding Link}"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Canvas>
            <TextBlock Canvas.Top="200" Canvas.Left="80" FontSize="28" TextWrapping="Wrap" Width="460" x:Name="tblkFavNoMovies" Text="No chapters available, just songs." Visibility="Collapsed" Foreground="White"/>
        </Canvas>
    </Grid>
   
</UserControl>
